package com.victor.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.victor.dao.SearchHistoryDao;
import com.victor.entity.SearchHistory;
import com.victor.service.SearchhistoryService;
@Service
public class SearchhistoryServiceImpl implements SearchhistoryService{
	@Autowired
	private SearchHistoryDao searchDao;

	@Override
	public boolean insertSearch(SearchHistory searchHistory) {
		return searchDao.insertSelective(searchHistory);
	}


	@Override
	public List<SearchHistory> selByUid(String uid) {
		return searchDao.selByUid(uid);
	}

	@Override
	public List<SearchHistory> selByCity(Map<Object, Object> map) {
		return searchDao.selByCity(map);
	}

}
